<?php
$hireService = House::LoadService('SecondHireService');
$hview = House::LoadClass('houseview', 'utility');
$rev = new stdClass ();
list($options) = GP(array('options'));
$params = $hview->getParams($options);
list($rev->areatype, $rev->pricetype, $rev->roomtype, $rev->housetype) = array($params['areatype'], $params['pricetype'], $params['roomtype'], $params['housetype']);
list($rev->keywords) = GP(array('keywords'));

$rev->area = $hireService->getFieldsByType('area');//所属区域
$rev->house = $hireService->getFieldsByType('property');//所有板块
$rev->price = $hireService->getFieldsByType('rentprice');//租金区间
$rev->room = $hireService->roomType;

$rev->areaName = $rev->area[$rev->areatype];
$rev->houseName = $rev->house[$rev->housetype];
$rev->priceName = $rev->price[$rev->pricetype];
$rev->roomName = $rev->room[$rev->roomtype];
$rev->baseUrl = 'index.php?m=house&q=hire';
return $rev;